Discuz sendmail函数实现 发表回帖邮件通知楼主方法
找到下面代码:
在这段代码之前添加如下代码:
打开目录:source\include\post
即可实现回帖邮件通知楼主!
if($firstpost['author'] != $_G['uid']){
$tomail = reset(C::t('common_member')->fetch_all_by_username($firstpost['author']));
$mail_subject = '您的帖子有新回复!';
$mail_message = <<<EOT
<table cellpadding="6" cellspacing="0" width="100%" style="width:650px;margin:0 auto;font-size:12px;">
<tbody><tr>
<td width="640" style="border-bottom:1px solid #e0e0e0;text-align:right;" colspan="2">
<table cellpadding="0" cellspacing="0">
<tbody><tr>
<td valign="bottom"><img src=http://www.ym97.com/discuz/"http:/www.dz7.com.cn/template/dz7_tuhao1/images/logo.png" style="vertical-align: bottom"></td>
<td width="600" style="text-align:right" valign="bottom"><a href=http://www.ym97.com/discuz/"http:/www.dz7.com.cn/member.php?mod=logging&action=login" style="font-size:14px;color:#0082d5;text-decoration:none;" target="_blank">登录</a> | <a href=http://www.ym97.com/discuz/"http:/www.dz7.com.cn/member.php?mod=register" style="font-size:14px;color:#0082d5;text-decoration:none" target="_blank">注册</a></td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td style="font-size:14px;line-height:25px;">尊敬的DZ起点网会员:<span style="border-bottom: 1px dashed rgb(204, 204, 204); z-index: 1; position: static;" t="7" data="{$firstpost['author']}" isout="1">{$firstpost['author']}</span><br><br>有新网友回复了您在起点网发布的帖子《<a href="{$firstpost['tid']}-1-1.html" target="_blank">{$firstpost['subject']}</a>》<br><br>详情请点击这里打开查看:<a href="{$firstpost['tid']}-1-1.html">{$firstpost['tid']}-1-1.html</a>。<br><br>DZ起点网,您的坚强后盾!</td>
</tr>
<tr>
<td style="text-indent:1.3em;font-size:14px;line-height:25px;border-bottom:1px solid #e0e0e0"><br></td>
</tr>
<tr>
<td style="color:#8a8a8a;font-size:12px;padding-left:24px;line-height:20px;"><br><div style="text-align: center;"><img src=http://www.ym97.com/discuz/"https:/set3.mail.qq.com/cgi-bin/download?sid=o98wstGkas_ITGI6&upfile=nnTDFYo6EOWktJwwFfeKsGThsfTBA4MSoChZT6Ln501bLjpernjAItEu3H8eNv0v4MVo7imxxO%2F9K7OhWM3L5EbZqCtNtEA4PiDgltAlJP7b6cJiwrTeNsbLmCITuQMI" modifysize="25%" diffpixels="-1px" style="width: 124px; height: 125px;"> </div><div style="text-align: center;"><span style="text-align: start;">如有任何疑问,可以添加DZ起点网站长QQ、微信进行咨询!</span></div></td>
</tr>
<tr>
<td style="color:#8a8a8a;font-size:12px;padding-left:24px;line-height:20px;">每一位DZ起点网的会员人,都在默默无闻的,帮助着新手站长朋友快速成长,解决站长朋友们在建站过程中的疑问!<br><div style="text-align: right;">-- DZ起点网</div></td></tr>
</tbody></table>
EOT;
if(!function_exists('sendmail')) {
include libfile('function/mail');
}
sendmail($tomail['email'], $mail_subject, $mail_message);
}
复制代码
if(!isset($inspacecpshare)) {
showmessage($return , $url, $modpost->param('showmsgparam'));
}
本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!
本文地址: https://v30.fanwenzhu.com/jz/discuz/3356.shtml
相关文章
热门TAG
win10 ecshop 主机 阿里云 解决 配置 C# C++ 解析 SQL语句 命令 Go语言 方法 CSS3 HTML5 CSS win7 MSSQL 服务器配置 IIS7.5 IIS7 IIS6 IIS CentOS 7 Linux oracle数据库 oracle phpcms discuz discuz教程最新文章
-
Discuz x2.5 伪静态规则成功
时间:2020-12-29
-
discuz X2正式版forum首页的
时间:2020-12-27
-
Discuz伪静态 配置搜索引擎
时间:2020-12-26
-
Discuz登录后总是显示未登
时间:2020-12-23
-
怎么换云服务器? Discuz论坛
时间:2020-12-23
-
Discuz!7.0主题回收站功能详
时间:2020-12-23
-
discuz 修改创始人密码、管
时间:2020-12-23
-
discuz论坛用户通过邮件验
时间:2020-12-23
热门文章
-
去掉discuz列表页的最新公告_Discuz模板开发
时间:2020-12-13
-
修改discuz X3.2论坛标题80个字符的长度限制
时间:2020-12-14
-
discuz 修改创始人密码、管理员登录密码的
时间:2020-12-23
-
discuz主题内容页面的打印按钮代码
时间:2020-12-13
-
Discuz!7.0主题回收站功能详解
时间:2020-12-23
-
footer.htm底部文件$_G['setting']['icp']、{if $
时间:2020-12-13
-
discuz教程_discuz视频教程_discuz论坛模板制
时间:2020-12-14
-
$article['related']Discuz 门户文章内容页的相
时间:2020-12-13
-
discuz教程_discuz视频教程_discuz论坛模板制
时间:2020-12-14
-
Discuz教程:使用微信登陆出现“目前无法
时间:2020-12-15
